<template>
  <div id="app">
    <Slider :marks="marks" :min="min" :max="max" v-model="value" unit="Mbps"/>
    <div>值：{{ value }}</div>
  </div>
</template>

<script>
import Slider from "./components/slider.vue";

export default {
  name: "App",
  data() {
    return {
      value: 0,
      min: 1,
      max: 1024,
      marks: {
        1: 1,
        20: 20,
        40: 40,
        60: 60,
        80: 80,
        100: 100,
        120: 120,
        140: 140,
        160: 160,
        180: 180,
        200: 200,
        300: 300,
        400: 400,
        500: 500,
        600: 600,
        700: 700,
        800: 800,
        900: 900,
        1024: 1024,
      },
    };
  },
  components: {
    Slider,
  },
};
</script>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}
</style>
